AITranslate\AI_Translate_Core D

Total Complexity 785
Dependencies 9
Dependents 16
Total lines 5,331
Lines of code 3,158
Logical lines of code 1,818
Comment lines 1,423
Methods 100
Properties 11

Methods 100

Method Rating Maintainability Complexity Lines of code
batch_translate_items()
D
16
78 219
translate_text()
D
17
67 217
add_open_graph_meta_tags()
D
28
40 126
translate_menu_items()
C
34 31 83
get_current_language()
C
34 31 80
reverse_translate_slug()
C
30 21 142
translate_fluentform_fields()
C
36 24 76
validate_api_settings()
B
38 23 61
get_homepage_content()
B
38 21 67
translate_url()
B
40 21 51
extract_security_tokens()
B
33 14 114
add_alternate_hreflang_links()
B
39 17 61
parse_translated_request()
B
40 17 60
get_translated_slug()
B
36 15 88
add_simple_meta_description()
B
39 16 62
translate_template_part()
B
42 16 48
update_slug_translations_on_save()
A
39 13 64
make_api_request()
A
38 11 72
identify_post_from_url()
A
39 11 66
build_translation_prompt()
A
41 8 64
get_cache_statistics()
A
44 9 48
display_language_switcher()
A
44 9 45
save_to_cache()
A
46 9 41
initialize_cache_directories()
A
50 9 34
generate_website_context_suggestion()
A
43 8 49
translate_url_slugs()
A
49 9 31
clear_cache_for_language()
A
50 9 26
remove_marker_from_jetpack_og_tags()
A
51 9 26
translate_plugin_content()
A
50 8 30
clear_global_ui_cache()
S
51 7 27
clear_transient_cache()
S
46 6 40
generate_title_from_url()
S
52 7 23
cleanup_expired_cache()
S
58 7 16
handle_404_redirect()
S
57 7 15
is_only_excluded_shortcodes()
S
52 6 24
enhance_search_query()
S
53 6 23
generate_cache_key()
S
56 6 18
validate_settings()
S
56 6 18
translate_search_result_title()
S
56 6 18
is_plugin_supported()
S
59 6 14
is_cache_expired()
S
49 4 34
translate_post_content()
S
56 5 18
do_translate()
S
48 4 32
get_assets_dir()
S
59 5 15
translate_search_form()
S
47 3 41
translate_path_segments()
S
52 4 25
filter_post_type_permalink()
S
54 4 21
translate_search_terms()
S
57 4 18
translate_search_placeholders()
S
50 3 31
translate_search_result_excerpt()
S
59 4 15
translate_search_page_title()
S
59 4 15
translate_search_content()
S
59 4 15
translate_widget_title()
S
59 4 13
force_menu_cache_clear()
S
61 4 13
get_cached_content()
S
61 4 11
translate_terms()
S
62 4 11
clear_menu_cache()
S
52 3 26
get_available_languages()
S
49 2 31
get_global_ui_element()
S
57 3 16
clear_translation_cache()
S
64 4 10
restore_shortcode_pairs()
S
60 3 13
get_supported_plugins()
S
48 1 43
translate_search_query()
S
61 3 12
clear_memory_and_transients_except_slugs()
S
57 2 19
clear_memory_and_transients()
S
57 2 19
extract_shortcode_pairs()
S
57 2 17
get_detectable_languages()
S
70 3 6
remove_translation_marker()
S
69 3 6
remove_marker_from_bloginfo()
S
70 3 6
get_caching_strategy()
S
63 3 10
init()
S
60 2 13
get_default_settings()
S
55 1 19
get_api_providers()
S
57 1 19
get_instance()
S
71 2 6
schedule_cleanup()
S
73 2 5
get_settings()
S
68 2 7
get_api_url_for_provider()
S
65 2 8
needs_translation()
S
75 2 4
translate_navigation()
S
65 2 9
create_short_menu_title()
S
64 2 9
conditionally_add_fluentform_filter()
S
72 2 5
clear_slug_cache_for_post()
S
63 2 10
__construct()
S
60 1 12
clean_html_string()
S
62 1 11
get_cache_dir()
S
74 1 4
get_language_name()
S
75 1 4
translate_site_title()
S
78 1 3
translate_tagline()
S
78 1 3
clear_slug_cache_table()
S
72 1 5
clear_all_cache()
S
75 1 5
clear_all_cache_except_slugs()
S
75 1 5
set_current_language()
S
81 1 3
hook_display_language_switcher()
S
82 1 3
strip_all_shortcodes_for_cache()
S
75 1 4
text_to_slug()
S
80 1 3
get_truly_excluded_shortcodes()
S
73 1 6
clear_prompt_cache()
S
77 1 4
cache_global_ui_element()
S
65 1 8
normalize_text_for_cache()
S
74 1 5
normalize_fluentform_for_cache()
S
68 1 7